package com.itheima.exerciseTest.method01_09.method5;
/*
    饲养员类
    饲养动物breed：包括吃饭和喝水
*/
public class Breeder {
    public Breeder() {
    }

    public static void breed(Animal a){
        a.drinking();
        a.eat();

        if(a instanceof Inter){
            Inter i = (Inter)a;
            i.swimming();
        }

        System.out.println();
    }
}
